import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'coach/getList',
    data: info,
    method: 'post'
  })
}

export const add = info => {
  return axios.request({
    url: 'coach/add',
    data: info,
    method: 'post'
  })
}

export const put = info => {
  return axios.request({
    url: 'coach/edit',
    data: info,
    method: 'post'
  })
}

export const del = info => {
  return axios.request({
    url: 'coach/del',
    data: info,
    method: 'post'
  })
}

export const getCoachCardList = info => {
  return axios.request({
    url: 'coach/getCoachCardList',
    data: info,
    method: 'post'
  })
}

export const coachCardAdd = info => {
  return axios.request({
    url: 'coach/coachCardAdd',
    data: info,
    method: 'post'
  })
}

export const coachCardEdit = info => {
  return axios.request({
    url: 'coach/coachCardEdit',
    data: info,
    method: 'post'
  })
}

export const coachCardDel = info => {
  return axios.request({
    url: 'coach/coachCardDel',
    data: info,
    method: 'post'
  })
}
export const getUser = info => {
  return axios.request({
    url: 'coach/getUser',
    data: info,
    method: 'post'
  })
}
export const getLogList = info => {
  return axios.request({
    url: 'coach/getLogList',
    data: info,
    method: 'post'
  })
}
